package com.food.mapper;

import com.food.model.UserFoodPreference;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface FoodPreferenceMapper {
    void insert(UserFoodPreference preference);
    void delete(@Param("userId") Integer userId, @Param("foodId") Integer foodId);
    List<UserFoodPreference> findByUserId(Integer userId);
    boolean exists(@Param("userId") Integer userId, @Param("foodId") Integer foodId);
} 